export default {
  methods: {
    checkPermission(value) {
      if (!this.$store.state.user.userInfo.roles) return false
      return this.$store.state.user.userInfo.roles.menus.includes(value)
    },
    checkPermissionPoint(value) {
      if (!this.$store.state.user.userInfo.roles) return false
      return this.$store.state.user.userInfo.roles.points.includes(value)
    }
  }
}
